package cn.china.springbootshiromybatis.serviceimpl;

import cn.china.springbootshiromybatis.service.PermissionService;
import entity.Permission;
import mapper.PermissionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionServiceImpl implements PermissionService {

    @Autowired
    PermissionMapper pm;

    @Override
    public List<Permission> selectByRoleName(String roleName) {
        return pm.selectByRoleName(roleName);
    }
}
